﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Practices.Unity;

using EventBrokR;

namespace ERPStore.Web.Start
{
	public class EventBrokerConfig
	{
		public static void Register(Microsoft.Practices.Unity.IUnityContainer container)
		{
			var eb = container.Resolve<EventBrokR.IPublisher>();

			// Event consumers

			eb.Container.Register<EventConsumers.AppStartEventConsumer>();
			eb.Container.Register<EventConsumers.AppStopEventConsumer>();
		}
	}
}
